var express = require('express');
var app = express();
var router = require('./router/');

// router(app);

// app.use(express.static('public')); //public 是一个文件夹

// app.set('views', './view') // 设置模版文件所在目录
// app.set('view engine', 'pug') // 如果需要使用其他模版

router(app);


var server = app.listen(8080, function() {
	console.log('server is started you can brower http://localhost:8080 view');
});